python delete saved image

36

python delete saved image -

import os
os.remove(file) for file in os.listdir('path/to/directory') if file.endswith('.png')

Comments

Submit
0 Comments